package com.zmm.util.auth.interceptor;

import com.zmm.util.auth.model.AuthParam;
import com.zmm.util.ip.IpUtil;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 900045
 * @description:
 * @name InterceptorHandlerUtil
 * @date By 2021-09-28 10:42:26
 */
public final class InterceptorHandlerUtil {


	public static AuthParam preHandle(HttpServletRequest request, HttpServletResponse response){
		AuthParam param = new AuthParam(request, response);
		param.setIpAddress(IpUtil.getIpAddress(request));
		return param;
	}
}
